﻿@using SCMS.Resources
@model SCMS.UI.Models.ViewFleetDetails
<div id="tabs" class="tabsShadow">
    <ul>
        <li><a href="#tabs-1">@Resources_frank.FleetManager_LoadFleetDetails_FleetRegistration</a></li>
        <li><a href="#tabs-2">@Resources_frank.FleetManager_LoadFleetDetails_DailyFleetMgt</a></li>
        <li><a href="#tabs-3">@Resources_frank.FleetManager_LoadFleetDetails_GarageInfo</a></li>
        <li><a href="#tabs-4">@Resources_frank.FleetManager_LoadFleetDetails_DriverDetails</a></li>
        <li><a href="#tabs-5">@Resources_frank.FleetManager_LoadFleetDetails_Accessories</a></li>
    </ul>
    <div id="tabs-1">
        <!-- Fleet Details -->
        <h4 style="text-align: center">@Resources_frank.FleetManager_LoadFleetDetails_FleetRegistration.ToUpper()</h4>
        @*<center>
            @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
            {                    
                   
                    
                @Ajax.ActionLink("[Add New]", "LoadNewFleetDetail", new AjaxOptions
                   {
                       OnBegin = "ShowDialogue('New Fleet Record')",
                       UpdateTargetId = "popup-page",
                       LoadingElementId = "popup-loading",
                       OnSuccess = "CenterPopup"
                   })
            }
        </center>*@
        <div id="FDDive">
            @Html.Action("LoadSummaryFleetDetails")
        </div>
    </div>
    <div id="tabs-2">
        <!-- Daily Fleet Management -->
        <h4 style="text-align: center">
            @Resources_frank.FleetManager_LoadFleetDetails_DailyFleetMgt @ViewBag.AssetNo</h4>
        @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
        {
            if
                (ViewBag.fleetId != null)
            {
            <center>
                @Ajax.ActionLink("[" + Resources_frank.Global_String_AddNew + "]", "LoadNewDailyFleet", new { id = ViewBag.fleetId }, new AjaxOptions
               {
                   OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_NewDailyFleetRecord),
                   UpdateTargetId = "popup-page",
                   LoadingElementId = "popup-loading",
                   OnSuccess = "CenterPopup"
               })
            </center>
            }
        }
        @if (Model.FDailyMngtDetails.Count > 0)
        {
       
            <div id="tablewrapper">
                <div id="tableheader">
                    <div class="search">
                        <b>@Resources_frank.Global_String_SearchBy:</b><br />
                        <select id="columns2" onchange="sorter2.search('query2')">
                        </select>
                        <input type="text" id="query2" onkeyup="sorter2.search('query2')" />
                    </div>
                    <span class="details">
                        <div>
                            @Resources_frank.Global_String_Records <span id="startrecord2"></span>-<span id="endrecord2"></span> @Resources_frank.Global_String_Of <span id="totalrecords2">
                            </span>
                        </div>
                    </span>
                </div>
                <br />
                <br />
                <br />
                <table width="98%" align="center" cellpadding="0" cellspacing="0" border="0" id="table2"
                    class="tinytable">
                    <thead>
                        <tr>
                            <th width="13%">
                                <h3>
                                    @Resources_frank.Global_String_Date</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_StartMileage</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_EndMileage</h3>
                            </th>
                            <th width="15%">
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_DistanceCovered</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_FuelInput</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_AnyMajorIncidence</h3>
                            </th>
                            @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                            {                    
                                <th width="15%">
                                    <h3>
                                        @Resources_frank.Global_String_Manage</h3>
                                </th>
                            }
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model.FDailyMngtDetails)
                        {
                    
                            <tr>
                                <td>@item.Date.Value.ToString("dd/MM/yyyy")
                                </td>
                                <td>
                                    @item.StartMilleage
                                </td>
                                <td>
                                    @item.EndMilleage
                                </td>
                                <td>@item.DistancedCovered
                                </td>
                                <td>@item.TotalFuelConsumed
                                </td>
                                <td>@item.FleetMajorIncidence.Name
                                </td>
                                @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                                {                    
                                    <td align="center">
                                        @Ajax.ActionLink(Resources_frank.Global_String_Edit, "LoadNewDailyFleet", new { id = item.FleetId, dailyFleetInfoId = item.Id }, new AjaxOptions
                           {
                               OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.Global_String_Edit) ,
                               UpdateTargetId = "popup-page",
                               LoadingElementId = "popup-loading"
                           }) &nbsp;| &nbsp;
                                        @Ajax.ActionLink(Resources_frank.Global_String_Delete, "DeleteDailyFleetInfo", new { dailyFleetInfoId = item.Id, fleetId = @ViewBag.fleetId }, new AjaxOptions
                           {
                               UpdateTargetId = "fleetDiv",
                               LoadingElementId = "loading",
                               Confirm = string.Format(Resources_frank.Global_String_ConfirmDelete, item.Date.Value.ToString("dd/MM/yyyy")),
                               OnSuccess = string.Format("usermsg('{0}');initPostFundsView(1);", Resources_frank.Global_String_ProcessCompleted)
                           })
                                    </td>
                                }
                            </tr>
                    
                        }
                    </tbody>
                </table>
                <div id="tablefooter">
                    <div id="tablenav2">
                        <div>
                            <img src="../../Content/images/pager/first.gif" width="16" height="16" alt="@Resources_frank.Global_String_FirstPage"
                                onclick="sorter2.move(-1,true)" />
                            <img src="../../Content/images/pager/previous.gif" width="16" height="16" alt="@Resources_frank.Global_String_PreviousPage"
                                onclick="sorter2.move(-1)" />
                            <img src="../../Content/images/pager/next.gif" width="16" height="16" alt="@Resources_frank.Global_String_NextPage"
                                onclick="sorter2.move(1)" />
                            <img src="../../Content/images/pager/last.gif" width="16" height="16" alt="@Resources_frank.Global_String_LastPage"
                                onclick="sorter2.move(1,true)" />
                        </div>
                        <div>
                            <select id="pagedropdown">
                            </select>
                        </div>
                        <div>
                            <a href="javascript:sorter2.showall()">@Resources_frank.Global_String_ViewAll</a>
                        </div>
                    </div>
                    <div id="tablelocation">
                        <div>
                            <select onchange="sorter2.size(this.value)">
                                <option value="5">5</option>
                                <option value="10">10</option>
                                <option value="20" selected="selected">20</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                            </select>
                            <span>@Resources_frank.Global_String_EntriesPerPage</span>
                        </div>
                        <div class="page">
                            @Resources_frank.Global_String_Page <span id="currentpage2"></span>@Resources_frank.Global_String_Of <span id="totalpages2"></span>
                        </div>
                    </div>
                </div>
            </div>
        }
        else
        {<i style="text-align: center;">@Resources_frank.FleetManager_LoadFleetDetails_NoDailyRecords</i>}
    </div>
    <div id="tabs-3">
        <!-- GARAGE INFO -->
        <h4 style="text-align: center">
            @Resources_frank.FleetManager_LoadFleetDetails_GarageInfo @ViewBag.AssetNo</h4>
        @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
        {
            if (ViewBag.fleetId != null)
            {               
            <center>
                @Ajax.ActionLink("[" + Resources_frank.Global_String_AddNew + "]", "LoadNewGarageInfo", new { id = ViewBag.fleetId }, new AjaxOptions
           {
               OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_NewGarageInfo),
               UpdateTargetId = "popup-page",
               LoadingElementId = "popup-loading",
               OnSuccess = "CenterPopup"
           })
            </center>
            }
        }
        @if (Model.GarageInfoDetails.Count > 0)
        {
            
            <div id="tablewrapper">
                <div id="tableheader">
                    <div class="search">
                        <b>@Resources_frank.Global_String_SearchBy:</b><br />
                        <select id="columns3" onchange="sorter3.search('query3')">
                        </select>
                        <input type="text" id="query3" onkeyup="sorter3.search('query3')" />
                    </div>
                    <span class="details">
                        <div>
                            @Resources_frank.Global_String_Records <span id="startrecord3"></span>-<span id="endrecord3"></span> @Resources_frank.Global_String_Of <span id="totalrecords3">
                            </span>
                        </div>
                    </span>
                </div>
                <br />
                <br />
                <br />
                <table width="98%" align="center" cellpadding="0" cellspacing="0" border="0" id="table3"
                    class="tinytable">
                    <thead>
                        <tr>
                            <th width="20%">
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_GarageName</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_DateTaken</h3>
                            </th>
                            <th width="10%">
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_Reason</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_CurrentMileage</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_NextMileage</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_MileageOut</h3>
                            </th>
                            @*<th>
                                <h3>
                                    Currency</h3>
                            </th>
                            <th>
                                <h3>
                                    Cost</h3>
                            </th>*@
                            <th>
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_DateOut</h3>
                            </th>
                            @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                            {                    
                                <th width="12%">
                                    <h3>
                                        @Resources_frank.Global_String_Manage</h3>
                                </th>
                            }
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model.GarageInfoDetails)
                        {
                    
                            <tr>
                                <td>@item.Supplier.Name
                                </td>
                                <td>
                                    @item.Dateken.Value.ToString("dd/MM/yyyy")
                                </td>
                                <td title="@item.OtherProblemsDescription">
                                    @item.ReasonType
                                </td>
                                <td>@item.IfServiceCurrentMilleage
                                </td>
                                <td>@item.IfServiceNextMilleage
                                </td>
                                <td>@item.MilleageOut
                                </td>
                                @* <td>@item.Currency.ShortName
                                </td>
                                <td>@item.Cost.Value.ToString("##,##0.00")
                                </td>*@
                                <td>@item.DateOutOfGarage.Value.ToShortDateString()
                                </td>
                                @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                                {                    
                                    <td align="center">
                                        @Ajax.ActionLink(Resources_frank.Global_String_Edit, "LoadNewGarageInfo", new { id = item.FleetId, garageInfoId = item.Id }, new AjaxOptions
                                        {
                                            OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_EditGarageInfo),
                                            UpdateTargetId = "popup-page",
                                            LoadingElementId = "popup-loading"
                                        }) &nbsp;| &nbsp;
                                        @Ajax.ActionLink(Resources_frank.Global_String_Delete, "DeleteGarageInfo", new { garageInfoId = item.Id, fleetId = item.FleetId }, new AjaxOptions
                                        {
                                            UpdateTargetId = "fleetDiv",
                                            LoadingElementId = "loading",
                                            Confirm = string.Format(Resources_frank.Global_String_ConfirmDelete, item.Supplier.Name),
                                            OnSuccess = string.Format("usermsg('{0}');initPostFundsView(2);", Resources_frank.Global_String_ProcessCompleted)
                                        })
                                    </td>
                                }
                            </tr>
                    
                        }
                    </tbody>
                </table>
                <div id="tablefooter">
                    <div id="tablenav3">
                        <div>
                            <img src="../../Content/images/pager/first.gif" width="16" height="16" alt="@Resources_frank.Global_String_FirstPage"
                                onclick="sorter3.move(-1,true)" />
                            <img src="../../Content/images/pager/previous.gif" width="16" height="16" alt="@Resources_frank.Global_String_PreviousPage"
                                onclick="sorter3.move(-1)" />
                            <img src="../../Content/images/pager/next.gif" width="16" height="16" alt="@Resources_frank.Global_String_NextPage"
                                onclick="sorter3.move(1)" />
                            <img src="../../Content/images/pager/last.gif" width="16" height="16" alt="@Resources_frank.Global_String_LastPage"
                                onclick="sorter3.move(1,true)" />
                        </div>
                        <div>
                            <select id="pagedropdown">
                            </select>
                        </div>
                        <div>
                            <a href="javascript:sorter3.showall()">@Resources_frank.Global_String_ViewAll</a>
                        </div>
                    </div>
                    <div id="tablelocation">
                        <div>
                            <select onchange="sorter3.size(this.value)">
                                <option value="5">5</option>
                                <option value="10">10</option>
                                <option value="20" selected="selected">20</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                            </select>
                            <span>@Resources_frank.Global_String_EntriesPerPage</span>
                        </div>
                        <div class="page">
                            @Resources_frank.Global_String_Page <span id="currentpage3"></span>@Resources_frank.Global_String_Of <span id="totalpages3"></span>
                        </div>
                    </div>
                </div>
            </div>
        }
        else
        {
            <i style="text-align: center;">@Resources_frank.FleetManager_LoadFleetDetails_NoGarageInfo</i>
        }
    </div>
    <div id="tabs-4">
        <!-- Driver Details -->
        <h4 style="text-align: center">
            @Resources_frank.FleetManager_LoadFleetDetails_DriverDetails @ViewBag.AssetNo</h4>
        @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
        {
            if (ViewBag.fleetId != null)
            {                  
            <center>
                @Ajax.ActionLink("[" + Resources_frank.Global_String_AddNew + "]", "LoadNewDriverInfo", new { id = ViewBag.fleetId }, new AjaxOptions
               {
                   OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_NewDriverInfo),
                   UpdateTargetId = "popup-page",
                   LoadingElementId = "popup-loading",
                   OnSuccess = "CenterPopup"
               })
            </center>
            }
        }
        @if (Model.DriverDetails.Count > 0)
        {
         
            <div id="tablewrapper">
                <div id="tableheader">
                    <div class="search">
                        <b>@Resources_frank.Global_String_SearchBy:</b><br />
                        <select id="columns4" onchange="sorter4.search('query4')">
                        </select>
                        <input type="text" id="query4" onkeyup="sorter4.search('query4')" />
                    </div>
                    <span class="details">
                        <div>
                            @Resources_frank.Global_String_Records <span id="startrecord4"></span>-<span id="endrecord4"></span> @Resources_frank.Global_String_Of <span id="totalrecords4">
                            </span>
                        </div>
                    </span>
                </div>
                <br />
                <br />
                <br />
                <table width="98%" align="center" cellpadding="0" cellspacing="0" border="0" id="table4"
                    class="tinytable">
                    <thead>
                        <tr>
                            <th width="30%">
                                <h3>
                                    @Resources_frank.Global_String_StaffName</h3>
                            </th>
                            <th width="25%">
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_DriverLicenseNo</h3>
                            </th>
                            <th width="25%">
                                <h3>
                                    @Resources_frank.FleetManager_LoadFleetDetails_DriverLicenseExpiry</h3>
                            </th>
                            @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                            {                    
                                <th width="20%">
                                    <h3>
                                        @Resources_frank.Global_String_Manage</h3>
                                </th>
                            }
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model.DriverDetails)
                        {
                    
                            <tr>
                                <td>
                                    @item.Staff.Person.FirstName @Html.Raw("&nbsp;") @item.Staff.Person.OtherNames
                                </td>
                                <td>
                                    @item.DriverLicenseNo
                                </td>
                                <td>
                                    @item.LicenseExpiryDate.Value.ToShortDateString()
                                </td>
                                @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                                {                    
                                    <td align="center">
                                        @Ajax.ActionLink(Resources_frank.Global_String_Edit, "LoadNewDriverInfo", new { id = item.FleetId, driverInfoId = item.Id }, new AjaxOptions
                                   {
                                       OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_EditDriverInfo),
                                       UpdateTargetId = "popup-page",
                                       LoadingElementId = "popup-loading"
                                   }) &nbsp;| &nbsp;
                                        @Ajax.ActionLink(Resources_frank.Global_String_Delete, "DeleteDriverInfo", new { driverInfoId = item.Id, fleetId = @ViewBag.fleetId }, new AjaxOptions
                                   {
                                       UpdateTargetId = "fleetDiv",
                                       LoadingElementId = "loading",
                                       Confirm = string.Format(Resources_frank.Global_String_ConfirmDelete, item.Staff.Person.FirstName + " " + item.Staff.Person.OtherNames),
                                       OnSuccess = string.Format("usermsg('{0}');initPostFundsView(3);", Resources_frank.Global_String_ProcessCompleted)
                                   })
                                    </td>
                                }
                            </tr>
                    
                        }
                    </tbody>
                </table>
                <div id="tablefooter">
                    <div id="tablenav4">
                        <div>
                            <img src="../../Content/images/pager/first.gif" width="16" height="16" alt="@Resources_frank.Global_String_FirstPage"
                                onclick="sorter4.move(-1,true)" />
                            <img src="../../Content/images/pager/previous.gif" width="16" height="16" alt="@Resources_frank.Global_String_PreviousPage"
                                onclick="sorter4.move(-1)" />
                            <img src="../../Content/images/pager/next.gif" width="16" height="16" alt="@Resources_frank.Global_String_NextPage"
                                onclick="sorter4.move(1)" />
                            <img src="../../Content/images/pager/last.gif" width="16" height="16" alt="@Resources_frank.Global_String_LastPage"
                                onclick="sorter4.move(1,true)" />
                        </div>
                        <div>
                            <select id="pagedropdown">
                            </select>
                        </div>
                        <div>
                            <a href="javascript:sorter4.showall()">@Resources_frank.Global_String_ViewAll</a>
                        </div>
                    </div>
                    <div id="tablelocation">
                        <div>
                            <select onchange="sorter4.size(this.value)">
                                <option value="5">5</option>
                                <option value="10">10</option>
                                <option value="20" selected="selected">20</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                            </select>
                            <span>@Resources_frank.Global_String_EntriesPerPage</span>
                        </div>
                        <div class="page">
                            @Resources_frank.Global_String_Page <span id="currentpage4"></span>@Resources_frank.Global_String_Of <span id="totalpages4"></span>
                        </div>
                    </div>
                </div>
            </div>
        }
        else
        {
            <i style="text-align: center;">@Resources_frank.FleetManager_LoadFleetDetails_NoDriverInfo</i>
        }
    </div>
    <div id="tabs-5">
        <!-- Accesories -->
        <h4 style="text-align: center">
            @Resources_frank.FleetManager_LoadFleetDetails_Accessories @ViewBag.AssetNo</h4>
        @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
        {
            if (ViewBag.fleetId != null)
            {                 
            <center>
                @Ajax.ActionLink("[" + Resources_frank.Global_String_AddNew + "]", "LoadFleetAccecories", new { id = @ViewBag.fleetId }, new AjaxOptions
                   {
                       OnBegin = string.Format("ShowDialogue('{0}')", Resources_frank.FleetManager_LoadFleetDetails_NewAccessory),
                       UpdateTargetId = "popup-page",
                       LoadingElementId = "popup-loading",
                       OnSuccess = "CenterPopup"
                   })
            </center>
            }
        }
        @if (Model.Eqpmnt2FleetDetails.Count > 0)
        {
         
            <div id="tablewrapper">
                <div id="tableheader">
                    <div class="search">
                        <b>@Resources_frank.Global_String_SearchBy:</b><br />
                        <select id="columns5" onchange="sorter5.search('query5')">
                        </select>
                        <input type="text" id="query5" onkeyup="sorter5.search('query5')" />
                    </div>
                    <span class="details">
                        <div>
                            @Resources_frank.Global_String_Records <span id="startrecord5"></span>-<span id="endrecord5"></span> @Resources_frank.Global_String_Of <span id="totalrecords5">
                            </span>
                        </div>
                    </span>
                </div>
                <br />
                <br />
                <br />
                <table width="98%" align="center" cellpadding="0" cellspacing="0" border="0" id="table5"
                    class="tinytable">
                    <thead>
                        <tr>
                            <th style="width: 15%;">
                                <h3>
                                    #</h3>
                            </th>
                            <th>
                                <h3>
                                    @Resources_frank.Global_String_Item @Resources_frank.Global_String_Name</h3>
                            </th>
                            @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                            {                    
                                <th style="width: 15%;">
                                    <h3>
                                        @Resources_frank.Global_String_Manage</h3>
                                </th>
                            }
                        </tr>
                    </thead>
                    <tbody>
                        @{int count = 0;}
                        @foreach (var item in Model.Eqpmnt2FleetDetails)
                        {
                            count = count + 1;
                            <tr>
                                <td>@count
                                </td>
                                <td>
                                    @item.FleetEquipment.EquipmentName
                                </td>
                                @if (UserContext.HasPermission(StandardPermissionProvider.ApproversManage))
                                {                    
                                    <td align="center">
                                        @Ajax.ActionLink(Resources_frank.Global_String_Delete, "RemoveAccesory", new { accesoryId = item.Id, fleetId = ViewBag.fleetId }, new AjaxOptions
                                   {
                                       UpdateTargetId = "fleetDiv",
                                       LoadingElementId = "loading",
                                       Confirm = string.Format(Resources_frank.Global_String_ConfirmDelete, item.FleetEquipment.EquipmentName),
                                       OnSuccess = string.Format("usermsg('{0}');initPostFundsView(4);", Resources_frank.Global_String_ProcessCompleted)
                                   })
                                    </td>
                                }
                            </tr>                    
                        }
                    </tbody>
                </table>
                <div id="tablefooter">
                    <div id="tablenav5">
                        <div>
                            <img src="../../Content/images/pager/first.gif" width="16" height="16" alt="@Resources_frank.Global_String_FirstPage"
                                onclick="sorter5.move(-1,true)" />
                            <img src="../../Content/images/pager/previous.gif" width="16" height="16" alt="@Resources_frank.Global_String_PreviousPage"
                                onclick="sorter5.move(-1)" />
                            <img src="../../Content/images/pager/next.gif" width="16" height="16" alt="@Resources_frank.Global_String_NextPage"
                                onclick="sorter5.move(1)" />
                            <img src="../../Content/images/pager/last.gif" width="16" height="16" alt="@Resources_frank.Global_String_LastPage"
                                onclick="sorter5.move(1,true)" />
                        </div>
                        <div>
                            <select id="pagedropdown">
                            </select>
                        </div>
                        <div>
                            <a href="javascript:sorter5.showall()">@Resources_frank.Global_String_ViewAll</a>
                        </div>
                    </div>
                    <div id="tablelocation">
                        <div>
                            <select onchange="sorter5.size(this.value)">
                                <option value="5">5</option>
                                <option value="10">10</option>
                                <option value="20" selected="selected">20</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                            </select>
                            <span>@Resources_frank.Global_String_EntriesPerPage</span>
                        </div>
                        <div class="page">
                            @Resources_frank.Global_String_Page <span id="currentpage5"></span>@Resources_frank.Global_String_Of <span id="totalpages5"></span>
                        </div>
                    </div>
                </div>
            </div>
        }
        else
        {<i>@Resources_frank.FleetManager_LoadFleetDetails_NoAccessories</i>}
    </div>
</div>
